package cn.minimelon.bittermelon.solon;

import org.beetl.sql.core.SQLManagerBuilder;
import org.beetl.sql.core.UnderlinedNameConversion;
import org.noear.solon.Solon;
import org.noear.solon.core.event.EventListener;

public class SQLManagerListener implements EventListener<SQLManagerBuilder> {
    @Override
    public void onEvent(SQLManagerBuilder c) {
        c.setNc(new UnderlinedNameConversion());
        if (Solon.cfg().isDebugMode() || Solon.cfg().isFilesMode()) {
            c.addInterDebug();
        }
    }
}
